package hu.uniobuda.nik.openday;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {
	
	Button learnWhyButton,
		   newsButton,
		   gettingHereButton,
		   infoButton,
		   socialButton;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);        
        setContentView(R.layout.main);
        
        learnWhyButton = (Button)findViewById(R.id.learnWhy);
        learnWhyButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MainActivity.this, LearnWhyActivity.class);
				startActivity(i);
			}
		});
        
        newsButton = (Button)findViewById(R.id.news);
        newsButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {				
				Intent i = new Intent(MainActivity.this, NewsActivity.class);
				startActivity(i);
			}
		});
        
        gettingHereButton = (Button)findViewById(R.id.gettingHere);
        gettingHereButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MainActivity.this, GettingHereActivity.class);
				startActivity(i);
			}
		});
        
        infoButton = (Button)findViewById(R.id.info);
        infoButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MainActivity.this, InfoActivity.class);
				startActivity(i);
			}
		});
        
        socialButton = (Button)findViewById(R.id.social);
        socialButton.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent i = new Intent(MainActivity.this, SocialActivity.class);
				startActivity(i);
			}
		});
        
    }
}